package per.mnxc.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author mnxc
 * @since 2022-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_column")
@ApiModel("类型信息")
public class Column implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 类型id
     */
    @ApiModelProperty("类型id")
    @TableId(value = "ColumnID", type = IdType.AUTO)
    private Long columnId;

    /**
     * 类型名字
     */
    @ApiModelProperty(value = "类型名字",required = true)
    @TableField("TypeName")
    private String typename;

    /**
     * 父类型id
     */
    @ApiModelProperty("父类型id")
    @TableField("PTypeID")
    private Long pTypeId;

    @TableLogic
    private Integer deleted;

    @Version
    private Integer version;


}
